'use strict';

module.exports = app => {
    const {
        STRING,
        INTEGER
    } = app.Sequelize;
    const works_show = app.model.define('works_show',{
        id:{
            type:INTEGER,
            primaryKey:true,
            autoIncrement:true,
            allowNull:false,
            comment:"作品展示ID"
        },
        project:{
            type:STRING,
            defaultValue:null,
            comment:"项目"
        },
        class_name:{
            type:STRING,
            defaultValue:null,
            comment:"班级"
        },
        semester:{
            type:STRING,
            defaultValue:null,
            comment:"学期"
        },
        student_number:{
            type:INTEGER,
            allowNull:false,
            unique:true,
            comment:"学号"
        },
        name:{
            type:STRING,
            defaultValue:null,
            comment:"名字"
        },
        works_capture:{
            type:STRING,
            defaultValue:null,
            comment:"作品截图"
        },
        defence_video:{
            type:STRING,
            defaultValue:null,
            comment:"答辩视频"
        }
    })
    works_show.associate = function () {
        
    }
}